package com.hou.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

@Data
public class User extends Model<User> {
  /**
   * 主键id
   * */
  @TableId(value = "id",type = IdType.INPUT)
   private Integer id;

   private String name;

   private String possword;

   @Override
   protected Serializable pkVal() {return this.id;}
}
